package minusjudge

class User extends SecUser {
//    String userName estos atributos estan en la clase padre
//    String password 
    String email
    String role
    String institution 

    static hasMany=[clarifications:Clarification]

    
    static constraints = {
//        userName(blank:false)
//        password(blank:false,password:true)
        email(blank:false,email:true,unique:true)
        role(inList:["Admin","contestan","observer"])
        institution()
    }
}
